<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
     

<h:head>
        <title>Central de Estagio Aluno</title>
        <link rel="StyleSheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/estilo.css" media="screen" />
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/css/tema/theme.css"/>
</h:head>
<body>
<h:form>
<p:panel header="ALTERAR SENHA">
	<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" /> 
    <h:panelGrid columns="2" id="matchGrid" styleClass="semBorda">       
    	<h:outputLabel for="pwd1" value="Senha Atual: *" />  
        <p:inputText size="20" value="#{MBAluno.senhaInfo}"/>             
        <h:outputLabel value="Nova Senha: *" />  
        <p:password id="pwd1" value="#{MBAluno.senhaNova}" title="tesete" required="true" requiredMessage="Campo Obrigatorio">
         <p:ajax event="blur" update="pwd1" />
         </p:password>  
        <h:outputLabel value="Confirmar Nova Senha: *" />  
        <p:password id="pwd2" value="#{MBAluno.senhaNova2}" label="tests" required="true"/>  
    </h:panelGrid>  
        <p:commandButton icon="ui-icon-disk" actionListener="#{MBAluno.alterarSenha}" update="matchGrid" value="Salvar" />  
    </p:panel>
    <br />
</h:form>
<h:form>
	<p:dialog id="confSenha">
		<p:outputLabel value="#{MBAluno.msg}"/>	
	</p:dialog>
</h:form>


<h:form>
<br />
<p:panel header="ALTERAR FOTO">
	<p:fileUpload fileUploadListener="#{MBAluno.processFileUpload}" label="Procurar..." 
			allowTypes="/(\.|\/)(gif|jpe?g|png)$/" mode="advanced" fileLimit="1" uploadLabel="Salvar" cancelLabel="Cancelar"/>	
	</p:panel>
	</h:form>
	
	
	
</body>
</html>

